<style type="text/css">
.modal-header, .modal-body, .modal-footer, .table {
	padding: 1px;
	margin: 0px;
}
</style>
<div class="modal-header">
	<button class="close" type="button" data-dismiss="modal">×</button>
	<h4 id="myModalLabel" align="center" th:text="'附件下载：'+${groupId}"></h4>
</div>
<div class="modal-body">
	<div class="row-fluid">
		<div class="span12">
			<table id="fileTable"
				class="table table-bordered table-striped table-condensed nopadding">
				<thead>
					<tr>
						<th>文件名</th>
						<th>上传者</th>
						<th>上传时间</th>
						<th>文件大小</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<tr th:each="i:${files}">
						<td th:text="${i.originalFileName}"  class="app-text-break"></td>
						<td th:text="${i.sender}"></td>
						<td th:text="${#dates.format(i.createTime,'yyyy/MM/dd HH:mm')}"></td>
						<td th:text="${i.fileSize}+${i.sizeUnit}"></td>
						<td class="center"><a
							th:href="${#ctx.servletContext.contextPath}+'/a/files/'+${i.savedFileName}"
							class="btn btn-info btn-xs" title="下载"><i
								class="fa fa-download"></i></a>
								 <a th:if="${del} == '1'" th:id="${i.id}" title="删除" class="btn btn-danger btn-xs btnDelete">
							            <i class="fa fa-remove"></i>
								 </a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
<!--modal-body-->
<div class="modal-footer">
	<div class="form-actions nopadding" align="center">
		<button type="button" class="btn btn-primary pull-center backBtn"
			data-dismiss="modal">返回</button>
	</div>
</div>

<script th:src="@{/attachment/downloadlist.js}">
	
</script>
